package com.zmc.common.utils.token;

import com.zmc.common.domain.vo.member.MemberInfo;
import com.zmc.common.domain.vo.user.UserInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author：zmc
 * @Date：2024/10/10 16:51
 */
public interface AuthTokenService {

    public UserInfo getUserInfo();

    String createToken(UserInfo user);

    public void setUserInfo(UserInfo loginUser);

    public void delUserInfo(String token);

    public void verifyToken(UserInfo loginUser);

    public void refreshToken(UserInfo loginUser);

    public MemberInfo getMemberInfo();

    String createToken(MemberInfo memberInfo);

    public void setMemberInfo(MemberInfo memberInfo);

    public void delMemberInfo(String token);

    public void verifyToken(MemberInfo memberInfo);

    public void refreshToken(MemberInfo memberInfo);

    String getToken(HttpServletRequest request);

}
